//
//  HLTitleModel.m
//  s.
//
//  Created by fanshijian on 2022/8/27.
//  Copyright © 2022 J. All rights reserved.
//

#import "TitleModel.h"

@implementation TitleModel

- (instancetype)init {
    if (self = [super init]) {
        self.textAlignment = NSTextAlignmentLeft;
        self.right_textAlignment = NSTextAlignmentRight;
        self.edit = NO;
        self.placeholder = @"";
        [super prepareLayout:kSize(kScreenWidth, 25)];
    }
    return self;
}

- (NSString *)idf {
    if (self.idfBlock) return self.idfBlock();
    return @"TitleCollectionCell";
}

+ (TitleModel *)cModelT:(id)t s:(CGSize)s {
    return [self cModelT:t s:s tf:nil tc:nil];
}

+ (TitleModel *)cModelT:(id)t DetailS:(id)ds s:(CGSize)s {
    TitleModel * model = [self cModelT:t s:s tf:nil tc:nil];
    model.value = ds;
    return model;
}

+ (TitleModel *)cModelT:(id)t s:(CGSize)s tf:(UIFont *)tf tc:(NSString *)tc {
    TitleModel *model = [[self class] new];
    model.title = t;
    model.layout.itemSize = s;
    model.tf = tf;
    model.tColor = tc;
    return model;
}

@end
